class ProjectsController < ApplicationController

  def index
    @projects = Project.all
  end

  def show
    if params[:id]
      @project = Project.find(params[:id])
    else
      redirect_to :action => "index"
    end
  end
end

